package com.yhb.service;

public interface VerifyCodeService {
    String generateVerifyCode(String number, long expiration, CodeType codeType);
    String generateVerifyCode(String number, CodeType codeType);


    boolean verifyCode(String number, String code, CodeType codeType);
    enum CodeType {
        LOGIN,
        REGISTER,
        BOUND_WECHAT,
        BOUND_ALIPAY,

        LOGIN_BACKEND
    }
}
